#pragma once
#include "DXContext.h"

namespace DXBase
{
	// http://msdn.microsoft.com/en-us/library/windows/desktop/ff973956.aspx
	class WIC
	{
	private:
		WIC();

	public:
		static Microsoft::WRL::ComPtr<IWICFormatConverter> LoadImage(Platform::String^ file);
		static Microsoft::WRL::ComPtr<IWICFormatConverter> LoadImage(const Platform::Array<byte>^ data);
		static Microsoft::WRL::ComPtr<IWICFormatConverter> LoadImage(Microsoft::WRL::ComPtr<IStream> stream);
		static Microsoft::WRL::ComPtr<IWICFormatConverter> LoadImage(Windows::Storage::Streams::IRandomAccessStream^ src);
	};
}